package com.pactera.asmp.server.common.constants;

/**
 * 设备事件类型
 * 设备状态
 * 0-空闲
 * 1-占用
 * 2-断线
 */
public enum DeviceEventType {

    //准备占有
    DEVICE_PREPARE_OCCUPY(0,"准备占有" ),

    //排队占有
    DEVICE_QUEUE_OCCUPY(1,"排队占有" ),

    //设备占有
    DEVICE_OCCUPY(2,"已占有" ),

    //设备解除占有
    DEVICE_RELEASE(3,"解除占有" ),

    //设备空闲
    DEVICE_FREE(0,"空闲" ),

    //设备上线
    DEVICE_ONLINE(1,"上线" ),

    //设备断线
    DEVICE_OFFLINE(2,"断线" ),

    ;

    private int value;
    private String desc;

    DeviceEventType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
